package org.csu.agrisupply.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("order")
public class Order {
    @TableId(value = "orderId",type = IdType.INPUT)
    private String orderId;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "orderDate")
    private Date orderDate;
    @TableField(value = "payWay")
    private String payWay;
    @TableField(value = "addrFrom")
    private String addressFrom;
    @TableField(value = "addrTo")
    private String addressTo;
    @TableField(value = "totalPrice")
    private double totalPrice;
    private int supplier;
    private int transport;
}
